package cn.woochen.functionwidget.sample

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import cn.woochen.functionwidget.R
import kotlinx.android.synthetic.main.activity_test.*

class TestActivity : AppCompatActivity(), View.OnClickListener {
    override fun onClick(v: View?) {
        when (v) {
            btn_check_net -> {

            }
            btn_check_wifi -> {

            }
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test)
        initView()
    }

    private fun initView() {
        btn_check_net.setOnClickListener(this)
        btn_check_wifi.setOnClickListener(this)
    }
}
